module.exports._init = function (that) {
  let path = that.route;

  if (path == "pages/trend/detail"){
    let story = wx.getStorageSync("_BROWSERVERLAUF_STORY_") || [];
    let id = that.options.id;
    if (story.indexOf(id)>-1){
      story.splice(story.indexOf(id),1);
    }
    story = story.concat([id]).filter((p) => { return p || false });
    wx.setStorageSync("_BROWSERVERLAUF_STORY_", story);
  }
}

module.exports.get = function(){
  let data = wx.getStorageSync("_BROWSERVERLAUF_STORY_");
  return data.reverse();
}